///**
// *  JUnit testing for SystemAdministrator class
// *  
// */
//
//package source;
//
//import static org.junit.Assert.*;
//import java.util.HashMap;
//import java.util.Map;
//import org.junit.Test;
//import activejdbc.Base;
//
//
//public class SystemAdministratorTest {
//
//	@Test
//	public void testAddUser_p() {
//		/* connection to the database */
//		Base.open("com.mysql.jdbc.Driver",
//				"jdbc:mysql://freesql.org/teamteamwork",
//				"teamteamwork", "teamwork");
//		System.out.println("### server connection");
//		SystemAdministrator admin = new SystemAdministrator();
//		System.out.println("### admin object is instantiated");
//		
//		/* parameter setting - test: patient */
//		Map<String, String> values = new HashMap<String, String>();
//		values.put("type", "p");
//		System.out.println("### values are put for map");
//		Patient myPatient = (Patient) admin.addUser(values);
//		System.out.println("### User is added by admin with values");
//		assertEquals('p', myPatient.get("type"));
//
//		//fail("Not yet implemented");
//	}
//	
//	@Test
//	public void testAddUser_a() {
//		/* connection to the database */
////		Base.open("com.mysql.jdbc.Driver",
////				"jdbc:mysql://freesql.org/teamteamwork",
////				"teamteamwork", "teamwork");
//		System.out.println("### server connection");
//		SystemAdministrator admin = new SystemAdministrator();
//		System.out.println("### admin object is instantiated");
//
//		/* parameter setting - test: patient */
//		Map<String, String> values = new HashMap<String, String>();
//		values.put("type", "a");
//		System.out.println("### values are put for map");
//		SystemAdministrator myAdmin = (SystemAdministrator) admin.addUser(values);
//		System.out.println("### User is added by admin with values");
//		
//		/* compare the values */
//		assertEquals('a', myAdmin.get("type"));
//	}
//	
//	@Test
//	public void testAddUser_d() {
//		/* connection to the database */
////		Base.open("com.mysql.jdbc.Driver",
////				"jdbc:mysql://freesql.org/teamteamwork",
////				"teamteamwork", "teamwork");
//		System.out.println("### server connection");
//		SystemAdministrator admin = new SystemAdministrator();
//		System.out.println("### admin object is instantiated");
//
//		/* parameter setting - test: patient */
//		Map<String, String> values = new HashMap<String, String>();
//		values.put("type", "d");
//		System.out.println("### values are put for map");
//		Doctor myDoc = (Doctor) admin.addUser(values);
//		System.out.println("### User is added by admin with values");
//		
//		/* compare the values */
//		assertEquals('d', myDoc.get("type"));
//	}
//	
//	@Test
//	public void testAddUser_n() {
//		/* connection to the database */
////		Base.open("com.mysql.jdbc.Driver",
////				"jdbc:mysql://freesql.org/teamteamwork",
////				"teamteamwork", "teamwork");
//		System.out.println("### server connection");
//		SystemAdministrator admin = new SystemAdministrator();
//		System.out.println("### admin object is instantiated");
//
//		/* parameter setting - test: patient */
//		Map<String, String> values = new HashMap<String, String>();
//		values.put("type", "n");
//		System.out.println("### values are put for map");
//		Nurse myNurse = (Nurse) admin.addUser(values);
//		System.out.println("### User is added by admin with values");
//		
//		/* compare the values */
//		assertEquals('n', myNurse.get("type"));
//	}
//	
//	@Test
//	public void testAddUser_null() {
//		/* connection to the database */
////		Base.open("com.mysql.jdbc.Driver",
////				"jdbc:mysql://freesql.org/teamteamwork",
////				"teamteamwork", "teamwork");
//		System.out.println("### server connection");
//		SystemAdministrator admin = new SystemAdministrator();
//		System.out.println("### admin object is instantiated");
//
//		/* parameter setting - test: patient */
//		Map<String, String> values = new HashMap<String, String>();
//		System.out.println("### empty values");
//		User myUser = admin.addUser(values);
//		
//		/* compare the values */
//		assertEquals(null, myUser.get("type"));
//	}
//	
////	@Test
////	public void testSystemAdministrator()
////		throws Exception {
////		SystemAdministrator systemAdministrator = new SystemAdministrator();
////	}
//
//}
